Filter hook 'pre_update_site_option_{$option}'
in WP Core File wp-includes/option.php at line 2340
Description
Filters a specific network option before its value is updated. The dynamic portion of the hook name, `$option`, refers to the option name.
Occurrences
Filename |
Line Number |
wp-includes/option.php |
2340 |
Parameters
Type |
Name |
Description |
mixed |
$value |
New value of the network option. |
mixed |
$old_value |
Old value of the network option. |
string |
$option |
Option name. |
int |
$network_id |
ID of the network. |
PHP Doc
/**
* Filters a specific network option before its value is updated.
*
* The dynamic portion of the hook name, `$option`, refers to the option name.
*
* @since 2.9.0 As 'pre_update_site_option_' . $key
* @since 3.0.0
* @since 4.4.0 The `$option` parameter was added.
* @since 4.7.0 The `$network_id` parameter was added.
*
* @param mixed $value New value of the network option.
* @param mixed $old_value Old value of the network option.
* @param string $option Option name.
* @param int $network_id ID of the network.
*/